<ion-view>
  <ion-header-bar class="bar bar-header header">
    <button on-touch="goback()" class="button return-btn">返回</button>
    <h1 class="title" ng-click="backToTop()">历史酒单</h1>
  </ion-header-bar>
  <ion-content class="gray-bg" has-bouncing="true">
        <div class="list history-find-warp">
            <label class="item item-input">
                <input type="text" placeholder="请输入关键词搜索" ng-model="search.mrw_name"/>
            </label>
        </div>
        <div class="list">
            <div class="item myitem-checkbox history-item" ng-repeat="order in historyOrderList | filter:search" >
                <label class="mycheckbox" on-touch="changeSelectState(order.mrw_id)">
                    <em class="product-item-checkbox" ng-class="{'active':order.selected}">
                        <input type="checkbox"/>
                    </em>
                </label>
                <div class="item history-product-main" ng-click="getWineOrderDetail(order.mrw_id)">
                    <div class="history-item-tit"><span class="history-item-tit-data" ng-bind="order.mrw_create_time| date:'yyyy-MM-dd'">2015-10-15</span>{{order.mrw_name}}</div>
                    <div class="history-product-list clear-fix">
                        <ul class="row row-wrap">
                            <li class="col-33" ng-repeat="imgUrl in order.wineImgUrls track by $index">
                                <div class="history-product-item">
                                    <img ng-if="imgUrl" ng-src="{{ENV.picPath}}{{imgUrl}}" alt=""/>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
  </ion-content>
  <ion-footer-bar>
    <div class="bar bar-footer footer-txt footer-white">
      <label class="mt5" style="width:60px">
        <em class="footer-checkbox" ng-class="{'active' : selectAllOrder}" on-touch="selectAllOrders()">
          <input type="checkbox"/>
        </em>
        全选
      </label>
        <span class="absolute-right" style="width:60px">
            <button class="button button-small grey-bottom-btn" type="button" ng-click="deleteOrders()">删除</button>
            <!--<button class="button button-small claret-red-btn" type="button" n="shareOrders()">分享</button>-->
        </span>
    </div>
  </ion-footer-bar>
</ion-view>

